home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form FilesForm
- Caption = "Select Files"
- ClientHeight = 1410
- ClientLeft = 510
- ClientTop = 1035
- ClientWidth = 4065
- Height = 2100
- Left = 450
- LinkTopic = "Form1"
- ScaleHeight = 1410
- ScaleWidth = 4065
- Top = 405
- Width = 4185
- Begin VB.CommandButton CmdLoad
- Caption = "Load"
- Default = -1 'True
- Height = 495
- Left = 1680
- TabIndex = 4
- Top = 840
- Width = 735
- End
- Begin VB.TextBox SourceText
- Height = 285
- Left = 960
- TabIndex = 0
- Text = "Dylan1.bmp"
- Top = 120
- Width = 3015
- End
- Begin VB.TextBox MaskText
- Height = 285
- Left = 960
- TabIndex = 1
- Text = "Dylan1M.bmp"
- Top = 480
- Width = 3015
- End
- Begin VB.Label Label1
- Caption = "Source"
- Height = 255
- Index = 0
- Left = 120
- TabIndex = 3
- Top = 120
- Width = 855
- End
- Begin VB.Label Label1
- Caption = "Mask"
- Height = 255
- Index = 2
- Left = 120
- TabIndex = 2
- Top = 480
- Width = 855
- End
- Begin VB.Menu mnuFile
- Caption = "File"
- Begin VB.Menu mnuFileExit
- Caption = "E&xit"
- End
- End
- Attribute VB_Name = "FilesForm"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Option Explicit
- Sub WaitEnd()
- MousePointer = vbDefault
- End Sub
- Sub WaitStart()
- MousePointer = vbHourglass
- End Sub
- Private Sub Form_Load()
- Dim pth As String
- Dim loc As Integer
- pth = UCase$(App.Path)
- loc = InStr(pth, "\CH4")
- If loc > 0 Then pth = Left$(pth, loc + 3) & "\DATA"
- SourceText.Text = pth & "\" & SourceText.Text
- MaskText.Text = pth & "\" & MaskText.Text
- End Sub
- Private Sub Form_Unload(Cancel As Integer)
- End
- End Sub
- ' ***********************************************
- ' End the application.
- ' ***********************************************
- Private Sub mnuFileExit_Click()
- End
- End Sub
- ' ***********************************************
- ' Load the image files.
- ' ***********************************************
- Private Sub CmdLoad_Click()
- Dim frm As New CompositeForm3
- On Error GoTo Done
- WaitStart
- frm.Show
- frm.LoadFiles _
- Trim$(SourceText.Text), _
- Trim$(MaskText.Text)
- frm.MakeComposite
- Done:
- WaitEnd
- End Sub
-